package com.bsg.upm.check;

/**
 * 检查结果
 * 
 * @author HCK
 *
 */
public class CheckResult {

	private boolean error;
	private String errorMsg;
	private Integer status;

	public CheckResult() {
		this.error = false;
	}

	public CheckResult(Integer status, String errorMsg) {
		this.error = true;
		this.errorMsg = errorMsg;
	}

	/**
	 * 获取error
	 *
	 * @return error error
	 */
	public boolean isError() {
		return error;
	}

	/**
	 * 设置error
	 *
	 * @param error
	 *            error
	 */
	public void setError(boolean error) {
		this.error = error;
	}

	/**
	 * 获取errorMsg
	 *
	 * @return errorMsg errorMsg
	 */
	public String getErrorMsg() {
		return errorMsg;
	}

	/**
	 * 设置errorMsg
	 *
	 * @param errorMsg
	 *            errorMsg
	 */
	public void setErrorMsg(String errorMsg) {
		this.error = true;
		this.errorMsg = errorMsg;
	}

	/**
	 * 获取status
	 *
	 * @return status status
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * 设置status
	 *
	 * @param status
	 *            status
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

}
